﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Data;
using NBFModel;

namespace NBFWcfService
{
    [ServiceContract]
    public interface IUserInfo
    {
        /// <summary>
        /// 获取用户列表
        /// </summary>
        /// <param name="strWhere">查询条件</param>
        /// <returns>返回用户列表信息</returns>
        [OperationContract]
        List<TB_zdgl_Users> GetUserList(string strWhere);

        /// <summary>
        /// 根据用户编号获取单个用户信息(用户修改，查看用户信息)
        /// </summary>
        /// <param name="userID">用户编号</param>
        /// <returns>返回用户实体信息</returns>
        [OperationContract]
        TB_zdgl_Users GetSingleUser(string userID);

        /// <summary>
        /// 新增用户
        /// </summary>
        /// <param name="usr">用户信息实体对象</param>
        /// <returns>实体操作结果</returns>
        [OperationContract]
        int InsertUser(TB_zdgl_Users usr);

        /// <summary>
        /// 修改用户信息
        /// </summary>
        /// <param name="usr">用户信息实体对象</param>
        /// <returns>实体操作结果</returns>
        [OperationContract]
        int UpdateUser(TB_zdgl_Users usr);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userid">用户ID</param>
        /// <returns>影响行数</returns>
        [OperationContract]
        int DeleteUuser(string userid);
    }
}
